package com.pencilisland.pay.mgt.console.bean;

import java.util.List;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * Jstree 节点信息
 * 
 * @author Breeze
 *
 */
@JsonInclude(Include.NON_NULL)
public class JstreeNode {
	private String id;
	private String text;
	private String icon;
	private State state;
	@JsonProperty("li_attr")
	private Object liAttr;
	@JsonProperty("a_attr")
	private Object aAttr;
	private List<JstreeNode> children;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getText() {
		return text;
	}

	public void setText(String text) {
		this.text = text;
	}

	public String getIcon() {
		return icon;
	}

	public void setIcon(String icon) {
		this.icon = icon;
	}

	public State getState() {
		return state;
	}

	public void setState(State state) {
		this.state = state;
	}

	public Object getLiAttr() {
		return liAttr;
	}

	public void setLiAttr(Object liAttr) {
		this.liAttr = liAttr;
	}

	public List<JstreeNode> getChildren() {
		return children;
	}

	public void setChildren(List<JstreeNode> children) {
		this.children = children;
	}

	public static class State {
		private Boolean opened;
		private Boolean disabled;
		private Boolean selected;

		public Boolean getOpened() {
			return opened;
		}

		public void setOpened(Boolean opened) {
			this.opened = opened;
		}

		public Boolean getDisabled() {
			return disabled;
		}

		public void setDisabled(Boolean disabled) {
			this.disabled = disabled;
		}

		public Boolean getSelected() {
			return selected;
		}

		public void setSelected(Boolean selected) {
			this.selected = selected;
		}
	}

	public Object getaAttr() {
		return aAttr;
	}

	public void setaAttr(Object aAttr) {
		this.aAttr = aAttr;
	}
}
